Optimal. Leaf size=355 \[ 3 a b c d^3 x+\frac {1}{3} b^2 c d^3 x-\frac {1}{3} b^2 d^3 \tanh ^{-1}(c x)+3 b^2 c d^3 x \tanh ^{-1}(c x)+\frac {1}{3} b c^2 d^3 x^2 \left (a+b \tanh ^{-1}(c x)\right )+\frac {11}{6} d^3 \left (a+b \tanh ^{-1}(c x)\right )^2+3 c d^3 x \left (a+b \tanh ^{-1}(c x)\right )^2+\frac {3}{2} c^2 d^3 x^2 \left (a+b \tanh ^{-1}(c x)\right )^2+\frac {1}{3} c^3 d^3 x^3 \left (a+b \tanh ^{-1}(c x)\right )^2+2 d^3 \left (a+b \tanh ^{-1}(c x)\right )^2 \tanh ^{-1}\left (1-\frac {2}{1-c x}\right )-\frac {20}{3} b d^3 \left (a+b \tanh ^{-1}(c x)\right ) \log \left (\frac {2}{1-c x}\right )+\frac {3}{2} b^2 d^3 \log \left (1-c^2 x^2\right )-\frac {10}{3} b^2 d^3 \text {PolyLog}\left (2,1-\frac {2}{1-c x}\right )-b d^3 \left (a+b \tanh ^{-1}(c x)\right ) \text {PolyLog}\left (2,1-\frac {2}{1-c x}\right )+b d^3 \left (a+b \tanh ^{-1}(c x)\right ) \text {PolyLog}\left (2,-1+\frac {2}{1-c x}\right )+\frac {1}{2} b^2 d^3 \text {PolyLog}\left (3,1-\frac {2}{1-c x}\right )-\frac {1}{2} b^2 d^3 \text {PolyLog}\left (3,-1+\frac {2}{1-c x}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.59, antiderivative size = 355, normalized size of antiderivative = 1.00, number of steps
used = 28, number of rules used = 16, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.727, Rules used = {6087,
6021, 6131, 6055, 2449, 2352, 6033, 6199, 6095, 6205, 6745, 6037, 6127, 266, 327, 212}
\begin {gather*} \frac {1}{3} c^3 d^3 x^3 \left (a+b \tanh ^{-1}(c x)\right )^2+\frac {3}{2} c^2 d^3 x^2 \left (a+b \tanh ^{-1}(c x)\right )^2+\frac {1}{3} b c^2 d^3 x^2 \left (a+b \tanh ^{-1}(c x)\right )-b d^3 \text {Li}_2\left (1-\frac {2}{1-c x}\right ) \left (a+b \tanh ^{-1}(c x)\right )+b d^3 \text {Li}_2\left (\frac {2}{1-c x}-1\right ) \left (a+b \tanh ^{-1}(c x)\right )+3 a b c d^3 x+3 c d^3 x \left (a+b \tanh ^{-1}(c x)\right )^2+\frac {11}{6} d^3 \left (a+b \tanh ^{-1}(c x)\right )^2+2 d^3 \tanh ^{-1}\left (1-\frac {2}{1-c x}\right ) \left (a+b \tanh ^{-1}(c x)\right )^2-\frac {20}{3} b d^3 \log \left (\frac {2}{1-c x}\right ) \left (a+b \tanh ^{-1}(c x)\right )+\frac {3}{2} b^2 d^3 \log \left (1-c^2 x^2\right )-\frac {10}{3} b^2 d^3 \text {Li}_2\left (1-\frac {2}{1-c x}\right )+\frac {1}{2} b^2 d^3 \text {Li}_3\left (1-\frac {2}{1-c x}\right )-\frac {1}{2} b^2 d^3 \text {Li}_3\left (\frac {2}{1-c x}-1\right )+\frac {1}{3} b^2 c d^3 x-\frac {1}{3} b^2 d^3 \tanh ^{-1}(c x)+3 b^2 c d^3 x \tanh ^{-1}(c x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 266
Rule 327
Rule 2352
Rule 2449
Rule 6021
Rule 6033
Rule 6037
Rule 6055
Rule 6087
Rule 6095
Rule 6127
Rule 6131
Rule 6199
Rule 6205
Rule 6745
Rubi steps
\begin {align*} \int \frac {(d+c d x)^3 \left (a+b \tanh ^{-1}(c x)\right )^2}{x} \, dx &=\int \left (3 c d^3 \left (a+b \tanh ^{-1}(c x)\right )^2+\frac {d^3 \left (a+b \tanh ^{-1}(c x)\right )^2}{x}+3 c^2 d^3 x \left (a+b \tanh ^{-1}(c x)\right )^2+c^3 d^3 x^2 \left (a+b \tanh ^{-1}(c x)\right )^2\right ) \, dx\\ &=d^3 \int \frac {\left (a+b \tanh ^{-1}(c x)\right )^2}{x} \, dx+\left (3 c d^3\right ) \int \left (a+b \tanh ^{-1}(c x)\right )^2 \, dx+\left (3 c^2 d^3\right ) \int x \left (a+b \tanh ^{-1}(c x)\right )^2 \, dx+\left (c^3 d^3\right ) \int x^2 \left (a+b \tanh ^{-1}(c x)\right )^2 \, dx\\ &=3 c d^3 x \left (a+b \tanh ^{-1}(c x)\right )^2+\frac {3}{2} c^2 d^3 x^2 \left (a+b \tanh ^{-1}(c x)\right )^2+\frac {1}{3} c^3 d^3 x^3 \left (a+b \tanh ^{-1}(c x)\right )^2+2 d^3 \left (a+b \tanh ^{-1}(c x)\right )^2 \tanh ^{-1}\left (1-\frac {2}{1-c x}\right )-\left (4 b c d^3\right ) \int \frac {\left (a+b \tanh ^{-1}(c x)\right ) \tanh ^{-1}\left (1-\frac {2}{1-c x}\right )}{1-c^2 x^2} \, dx-\left (6 b c^2 d^3\right ) \int \frac {x \left (a+b \tanh ^{-1}(c x)\right )}{1-c^2 x^2} \, dx-\left (3 b c^3 d^3\right ) \int \frac {x^2 \left (a+b \tanh ^{-1}(c x)\right )}{1-c^2 x^2} \, dx-\frac {1}{3} \left (2 b c^4 d^3\right ) \int \frac {x^3 \left (a+b \tanh ^{-1}(c x)\right )}{1-c^2 x^2} \, dx\\ &=3 d^3 \left (a+b \tanh ^{-1}(c x)\right )^2+3 c d^3 x \left (a+b \tanh ^{-1}(c x)\right )^2+\frac {3}{2} c^2 d^3 x^2 \left (a+b \tanh ^{-1}(c x)\right )^2+\frac {1}{3} c^3 d^3 x^3 \left (a+b \tanh ^{-1}(c x)\right )^2+2 d^3 \left (a+b \tanh ^{-1}(c x)\right )^2 \tanh ^{-1}\left (1-\frac {2}{1-c x}\right )+\left (2 b c d^3\right ) \int \frac {\left (a+b \tanh ^{-1}(c x)\right ) \log \left (\frac {2}{1-c x}\right )}{1-c^2 x^2} \, dx-\left (2 b c d^3\right ) \int \frac {\left (a+b \tanh ^{-1}(c x)\right ) \log \left (2-\frac {2}{1-c x}\right )}{1-c^2 x^2} \, dx+\left (3 b c d^3\right ) \int \left (a+b \tanh ^{-1}(c x)\right ) \, dx-\left (3 b c d^3\right ) \int \frac {a+b \tanh ^{-1}(c x)}{1-c^2 x^2} \, dx-\left (6 b c d^3\right ) \int \frac {a+b \tanh ^{-1}(c x)}{1-c x} \, dx+\frac {1}{3} \left (2 b c^2 d^3\right ) \int x \left (a+b \tanh ^{-1}(c x)\right ) \, dx-\frac {1}{3} \left (2 b c^2 d^3\right ) \int \frac {x \left (a+b \tanh ^{-1}(c x)\right )}{1-c^2 x^2} \, dx\\ &=3 a b c d^3 x+\frac {1}{3} b c^2 d^3 x^2 \left (a+b \tanh ^{-1}(c x)\right )+\frac {11}{6} d^3 \left (a+b \tanh ^{-1}(c x)\right )^2+3 c d^3 x \left (a+b \tanh ^{-1}(c x)\right )^2+\frac {3}{2} c^2 d^3 x^2 \left (a+b \tanh ^{-1}(c x)\right )^2+\frac {1}{3} c^3 d^3 x^3 \left (a+b \tanh ^{-1}(c x)\right )^2+2 d^3 \left (a+b \tanh ^{-1}(c x)\right )^2 \tanh ^{-1}\left (1-\frac {2}{1-c x}\right )-6 b d^3 \left (a+b \tanh ^{-1}(c x)\right ) \log \left (\frac {2}{1-c x}\right )-b d^3 \left (a+b \tanh ^{-1}(c x)\right ) \text {Li}_2\left (1-\frac {2}{1-c x}\right )+b d^3 \left (a+b \tanh ^{-1}(c x)\right ) \text {Li}_2\left (-1+\frac {2}{1-c x}\right )-\frac {1}{3} \left (2 b c d^3\right ) \int \frac {a+b \tanh ^{-1}(c x)}{1-c x} \, dx+\left (b^2 c d^3\right ) \int \frac {\text {Li}_2\left (1-\frac {2}{1-c x}\right )}{1-c^2 x^2} \, dx-\left (b^2 c d^3\right ) \int \frac {\text {Li}_2\left (-1+\frac {2}{1-c x}\right )}{1-c^2 x^2} \, dx+\left (3 b^2 c d^3\right ) \int \tanh ^{-1}(c x) \, dx+\left (6 b^2 c d^3\right ) \int \frac {\log \left (\frac {2}{1-c x}\right )}{1-c^2 x^2} \, dx-\frac {1}{3} \left (b^2 c^3 d^3\right ) \int \frac {x^2}{1-c^2 x^2} \, dx\\ &=3 a b c d^3 x+\frac {1}{3} b^2 c d^3 x+3 b^2 c d^3 x \tanh ^{-1}(c x)+\frac {1}{3} b c^2 d^3 x^2 \left (a+b \tanh ^{-1}(c x)\right )+\frac {11}{6} d^3 \left (a+b \tanh ^{-1}(c x)\right )^2+3 c d^3 x \left (a+b \tanh ^{-1}(c x)\right )^2+\frac {3}{2} c^2 d^3 x^2 \left (a+b \tanh ^{-1}(c x)\right )^2+\frac {1}{3} c^3 d^3 x^3 \left (a+b \tanh ^{-1}(c x)\right )^2+2 d^3 \left (a+b \tanh ^{-1}(c x)\right )^2 \tanh ^{-1}\left (1-\frac {2}{1-c x}\right )-\frac {20}{3} b d^3 \left (a+b \tanh ^{-1}(c x)\right ) \log \left (\frac {2}{1-c x}\right )-b d^3 \left (a+b \tanh ^{-1}(c x)\right ) \text {Li}_2\left (1-\frac {2}{1-c x}\right )+b d^3 \left (a+b \tanh ^{-1}(c x)\right ) \text {Li}_2\left (-1+\frac {2}{1-c x}\right )+\frac {1}{2} b^2 d^3 \text {Li}_3\left (1-\frac {2}{1-c x}\right )-\frac {1}{2} b^2 d^3 \text {Li}_3\left (-1+\frac {2}{1-c x}\right )-\left (6 b^2 d^3\right ) \text {Subst}\left (\int \frac {\log (2 x)}{1-2 x} \, dx,x,\frac {1}{1-c x}\right )-\frac {1}{3} \left (b^2 c d^3\right ) \int \frac {1}{1-c^2 x^2} \, dx+\frac {1}{3} \left (2 b^2 c d^3\right ) \int \frac {\log \left (\frac {2}{1-c x}\right )}{1-c^2 x^2} \, dx-\left (3 b^2 c^2 d^3\right ) \int \frac {x}{1-c^2 x^2} \, dx\\ &=3 a b c d^3 x+\frac {1}{3} b^2 c d^3 x-\frac {1}{3} b^2 d^3 \tanh ^{-1}(c x)+3 b^2 c d^3 x \tanh ^{-1}(c x)+\frac {1}{3} b c^2 d^3 x^2 \left (a+b \tanh ^{-1}(c x)\right )+\frac {11}{6} d^3 \left (a+b \tanh ^{-1}(c x)\right )^2+3 c d^3 x \left (a+b \tanh ^{-1}(c x)\right )^2+\frac {3}{2} c^2 d^3 x^2 \left (a+b \tanh ^{-1}(c x)\right )^2+\frac {1}{3} c^3 d^3 x^3 \left (a+b \tanh ^{-1}(c x)\right )^2+2 d^3 \left (a+b \tanh ^{-1}(c x)\right )^2 \tanh ^{-1}\left (1-\frac {2}{1-c x}\right )-\frac {20}{3} b d^3 \left (a+b \tanh ^{-1}(c x)\right ) \log \left (\frac {2}{1-c x}\right )+\frac {3}{2} b^2 d^3 \log \left (1-c^2 x^2\right )-3 b^2 d^3 \text {Li}_2\left (1-\frac {2}{1-c x}\right )-b d^3 \left (a+b \tanh ^{-1}(c x)\right ) \text {Li}_2\left (1-\frac {2}{1-c x}\right )+b d^3 \left (a+b \tanh ^{-1}(c x)\right ) \text {Li}_2\left (-1+\frac {2}{1-c x}\right )+\frac {1}{2} b^2 d^3 \text {Li}_3\left (1-\frac {2}{1-c x}\right )-\frac {1}{2} b^2 d^3 \text {Li}_3\left (-1+\frac {2}{1-c x}\right )-\frac {1}{3} \left (2 b^2 d^3\right ) \text {Subst}\left (\int \frac {\log (2 x)}{1-2 x} \, dx,x,\frac {1}{1-c x}\right )\\ &=3 a b c d^3 x+\frac {1}{3} b^2 c d^3 x-\frac {1}{3} b^2 d^3 \tanh ^{-1}(c x)+3 b^2 c d^3 x \tanh ^{-1}(c x)+\frac {1}{3} b c^2 d^3 x^2 \left (a+b \tanh ^{-1}(c x)\right )+\frac {11}{6} d^3 \left (a+b \tanh ^{-1}(c x)\right )^2+3 c d^3 x \left (a+b \tanh ^{-1}(c x)\right )^2+\frac {3}{2} c^2 d^3 x^2 \left (a+b \tanh ^{-1}(c x)\right )^2+\frac {1}{3} c^3 d^3 x^3 \left (a+b \tanh ^{-1}(c x)\right )^2+2 d^3 \left (a+b \tanh ^{-1}(c x)\right )^2 \tanh ^{-1}\left (1-\frac {2}{1-c x}\right )-\frac {20}{3} b d^3 \left (a+b \tanh ^{-1}(c x)\right ) \log \left (\frac {2}{1-c x}\right )+\frac {3}{2} b^2 d^3 \log \left (1-c^2 x^2\right )-\frac {10}{3} b^2 d^3 \text {Li}_2\left (1-\frac {2}{1-c x}\right )-b d^3 \left (a+b \tanh ^{-1}(c x)\right ) \text {Li}_2\left (1-\frac {2}{1-c x}\right )+b d^3 \left (a+b \tanh ^{-1}(c x)\right ) \text {Li}_2\left (-1+\frac {2}{1-c x}\right )+\frac {1}{2} b^2 d^3 \text {Li}_3\left (1-\frac {2}{1-c x}\right )-\frac {1}{2} b^2 d^3 \text {Li}_3\left (-1+\frac {2}{1-c x}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 0.44, size = 448, normalized size = 1.26 \begin {gather*} \frac {1}{24} d^3 \left (i b^2 \pi ^3+72 a^2 c x+72 a b c x+8 b^2 c x+36 a^2 c^2 x^2+8 a b c^2 x^2+8 a^2 c^3 x^3-8 b^2 \tanh ^{-1}(c x)+144 a b c x \tanh ^{-1}(c x)+72 b^2 c x \tanh ^{-1}(c x)+72 a b c^2 x^2 \tanh ^{-1}(c x)+8 b^2 c^2 x^2 \tanh ^{-1}(c x)+16 a b c^3 x^3 \tanh ^{-1}(c x)-116 b^2 \tanh ^{-1}(c x)^2+72 b^2 c x \tanh ^{-1}(c x)^2+36 b^2 c^2 x^2 \tanh ^{-1}(c x)^2+8 b^2 c^3 x^3 \tanh ^{-1}(c x)^2-16 b^2 \tanh ^{-1}(c x)^3-160 b^2 \tanh ^{-1}(c x) \log \left (1+e^{-2 \tanh ^{-1}(c x)}\right )-24 b^2 \tanh ^{-1}(c x)^2 \log \left (1+e^{-2 \tanh ^{-1}(c x)}\right )+24 b^2 \tanh ^{-1}(c x)^2 \log \left (1-e^{2 \tanh ^{-1}(c x)}\right )+24 a^2 \log (c x)+36 a b \log (1-c x)-36 a b \log (1+c x)+72 a b \log \left (1-c^2 x^2\right )+36 b^2 \log \left (1-c^2 x^2\right )+8 a b \log \left (-1+c^2 x^2\right )+8 b^2 \left (10+3 \tanh ^{-1}(c x)\right ) \text {PolyLog}\left (2,-e^{-2 \tanh ^{-1}(c x)}\right )+24 b^2 \tanh ^{-1}(c x) \text {PolyLog}\left (2,e^{2 \tanh ^{-1}(c x)}\right )-24 a b \text {PolyLog}(2,-c x)+24 a b \text {PolyLog}(2,c x)+12 b^2 \text {PolyLog}\left (3,-e^{-2 \tanh ^{-1}(c x)}\right )-12 b^2 \text {PolyLog}\left (3,e^{2 \tanh ^{-1}(c x)}\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
4.
time = 6.67, size = 1186, normalized size = 3.34
method | result | size |
derivativedivides | \(\text {Expression too large to display}\) | \(1186\) |
default | \(\text {Expression too large to display}\) | \(1186\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} d^{3} \left (\int 3 a^{2} c\, dx + \int \frac {a^{2}}{x}\, dx + \int 3 a^{2} c^{2} x\, dx + \int a^{2} c^{3} x^{2}\, dx + \int 3 b^{2} c \operatorname {atanh}^{2}{\left (c x \right )}\, dx + \int \frac {b^{2} \operatorname {atanh}^{2}{\left (c x \right )}}{x}\, dx + \int 6 a b c \operatorname {atanh}{\left (c x \right )}\, dx + \int \frac {2 a b \operatorname {atanh}{\left (c x \right )}}{x}\, dx + \int 3 b^{2} c^{2} x \operatorname {atanh}^{2}{\left (c x \right )}\, dx + \int b^{2} c^{3} x^{2} \operatorname {atanh}^{2}{\left (c x \right )}\, dx + \int 6 a b c^{2} x \operatorname {atanh}{\left (c x \right )}\, dx + \int 2 a b c^{3} x^{2} \operatorname {atanh}{\left (c x \right )}\, dx\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\left (a+b\,\mathrm {atanh}\left (c\,x\right )\right )}^2\,{\left (d+c\,d\,x\right )}^3}{x} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________